﻿using System;
using System.Collections.Generic;
using System.Text;

namespace KnBinarySerializer.Field
{
    /// <summary>
    /// 类的信息会串行保存到结果尾部。以缩小泛型列表定义部分
    /// </summary>
    public class ClassSerial
    {
        /// <summary>
        /// 类的定义的序号
        /// </summary>
        public short SerialNo {  get; set; }
        /// <summary>
        /// 字段也是按顺序写入
        /// </summary>
        public Dictionary<int,string> Fields { get; set; }

        public ClassSerial() { 
            Fields = new Dictionary<int,string>();
        }
    }
}
